/*************************************************************************
> File Name: operter.cpp
> Author: hzy
> Created Time: 2023-08-07 17:10:06
> Description: 三目运算符增强
************************************************************************/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>

int main(int argc, char const *argv[])
{
    int a = 5;
    int b = 3;

    a < b ? a : b = 10; //在C语言中也就是a < b ? a : (b = 10);

    printf("a = %d, b = %d\n", a, b);

    return 0;
}